class_name PlayerBowAttackState
extends GameplayState

@onready var player: Player = $"../../../"


func _on_enter() -> void:
	player.play_animation("bow_attack")
	player.weapon.play_animation("attack")

	player.velocity = Vector2.ZERO

	player.weapon.try_apply_ability_by_name("bow_attack", null)


func _on_update(_delta: float) -> void:
	if not player.weapon.animator.is_playing():
		change_state("GhostState", func(): pass)
